/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package DBLayer;
import ModelLayer.*;
import java.util.ArrayList;


/**
 *
 * @author And
 */
public interface IFDBCustomer {

    //Print all costumers.
    public ArrayList getAllCustomers(boolean retrieveAssociation);
    //find customer ved hjælp af Fname, Lname, id eller phoneNo.
    public Customer findCustomerByFname(String fname, boolean retrieveAssociation);
    public Customer findCustomerByLname(String lname, boolean retrieveAssociation);
    public Customer findCustomerById(int id, boolean retrieveAssociation);
    public Customer findCustomerByPhone(String phoneNo, boolean retrieveAssociation);
    //Insert custumer.
    public int insertCustomer(Customer cus);
    //Update Customer.
    public int updateCustomer(Customer cus);
    //Delete Customer.
    public int deleteCustomer(int id);
}
